package com.jsaas.sys.controller;

import com.jfinal.kit.Ret;
import com.jsaas.controller.base.BaseController;
import com.jsaas.utils.MyUtils;

public class ErrorController extends BaseController {
	
	public void to403(){
		boolean isAjax = MyUtils.isAjax(getRequest());
		if(isAjax){
			renderJson(Ret.fail().set("msg", "权限不足，对不起，您没有此操作权限。"));
		}else{
			render("/views/error/403.html");
		}
	}
}
